package com.ruoyi.creditlife.mapper;

import com.ruoyi.creditlife.domain.BookRenewRecords;

import java.util.List;

/**
 * 续借记录Mapper接口
 * 
 * @author ddd
 * @date 2025-07-10
 */
public interface BookRenewRecordsMapper 
{
    /**
     * 查询续借记录
     * 
     * @param renewId 续借记录主键
     * @return 续借记录
     */
    public BookRenewRecords selectBookRenewRecordsByRenewId(Long renewId);

    /**
     * 查询续借记录列表
     * 
     * @param bookRenewRecords 续借记录
     * @return 续借记录集合
     */
    public List<BookRenewRecords> selectBookRenewRecordsList(BookRenewRecords bookRenewRecords);

    /**
     * 新增续借记录
     * 
     * @param bookRenewRecords 续借记录
     * @return 结果
     */
    public int insertBookRenewRecords(BookRenewRecords bookRenewRecords);

    /**
     * 修改续借记录
     * 
     * @param bookRenewRecords 续借记录
     * @return 结果
     */
    public int updateBookRenewRecords(BookRenewRecords bookRenewRecords);

    /**
     * 删除续借记录
     * 
     * @param renewId 续借记录主键
     * @return 结果
     */
    public int deleteBookRenewRecordsByRenewId(Long renewId);

    /**
     * 批量删除续借记录
     * 
     * @param renewIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBookRenewRecordsByRenewIds(Long[] renewIds);

    public BookRenewRecords selectBookRenewRecordsByBorrowId(Long borrowId);
}
